export default function showToast(options) {
  const duration = 2000;
  return new Promise((resolve) => {
    wx.showToast({
      ...options,
      duration,
    });

    setTimeout(() => {
      resolve("");
    }, duration);
  });
}
